﻿<%@ Page Language="C#" MasterPageFile="~/AJAXMaster.master" AutoEventWireup="true" CodeFile="TimerControl2.aspx.cs" Inherits="Default3" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:UpdatePanel ID="up_Timer" runat="server" RenderMode="Inline" UpdateMode="Always">
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />
        </Triggers>
        <ContentTemplate>
            <asp:Timer ID="Timer1" runat="server" Interval="1000" ontick="Timer1_Tick" />
            <asp:Literal ID="lit_Timer" runat="server" /><br />
            <asp:HiddenField ID="hid_Ticker" runat="server" Value="0" />
        </ContentTemplate>
    </asp:UpdatePanel> 
    
    <%--<asp:UpdatePanel ID="up_Main" runat="server" RenderMode="Inline" UpdateMode="Conditional">
        <ContentTemplate>--%>
            Add your name: <asp:TextBox ID="fld_Name" runat="server" /><br />
            <br />
            <asp:Button ID="btn_Submit" runat="server" Text="Submit" onclick="btn_Submit_Click" /><br />
            <asp:Literal ID="lit_Name" runat="server" />
        <%--</ContentTemplate>--%>
   <%-- </asp:UpdatePanel> 
    --%>
</asp:Content>

